//
//  Address.m
//  We_Travel
//
//  Created by lanou3g on 15/12/16.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "Address.h"

@implementation Address

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addView];
    }
    return self;
}

- (void)addView
{
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 150, self.frame.size.width, self.frame.size.height - 150) style:UITableViewStyleGrouped];
    [self addSubview:self.tableView];
    self.mapView = [[BMKMapView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 150)];
    self.mapView.backgroundColor = [UIColor redColor];
    [self addSubview:self.mapView];
}

@end
